
% \documentclass[12pt,a4paper,twoside]{book}
\documentclass[11pt,a4paper,twoside]{book}

\usepackage{color}
\usepackage{tocloft}
\usepackage{rotating}
\usepackage{tikz}
\usepackage{fancyhdr}
\usepackage{listings}
\usepackage[italian]{babel}
\usepackage[a4paper]{geometry}
\pagestyle{fancy}
\geometry{verbose,tmargin=4.5cm,bmargin=5cm,lmargin=3cm,rmargin=3.4cm}
\usepackage{graphicx} % Required for including pictures
\usepackage[pdftex,pdfborder={0 0 0 0},bookmarks=true, pdfauthor={Sebastiano Catellani}]{hyperref}
\usepackage{eurosym}
\usepackage{gensymb}

\usepackage[toc,page]{appendix}
\usepackage{amsfonts}
\usepackage{mathtools}
\usepackage[utf8x]{inputenc}
\usepackage{url}
\usepackage{amsmath}
\usepackage{hyperref}

\usepackage{enumerate}

\usepackage{setspace}

\usepackage{caption}
\usepackage{subcaption}

\usetikzlibrary{arrows, patterns, calc, decorations.pathreplacing, shapes, plotmarks, matrix}

\usepackage[protrusion=true,expansion=true]{microtype} % Better typography
\usepackage{wrapfig} % Allows in-line images

\usepackage{mathpazo} % Use the Palatino font
\usepackage[utf8x]{inputenc} % Required for accented characters
\linespread{1.05} % Change line spacing here, Palatino benefits from a slight increase by default

\usepackage{pdfpages}

\newcommand{\tilda}{$\sim$}

\hoffset = 20pt
\leftskip=20pt
\rightskip=20pt
% header e footer con linee
\headheight = 15pt

\cfoot{}

\renewcommand\cftchapafterpnum{\vskip10pt}
\renewcommand\cftsecafterpnum{\vskip15pt}

\setlength{\parindent}{0pt}

\usepackage[shortlabels]{enumitem}
\setlist{leftmargin=17mm}

\makeatletter
\renewcommand\@biblabel[1]{\textbf{#1.}} % Change the square brackets for each bibliography item from '[1]' to '1.'
\renewcommand{\@listI}{\itemsep=0pt} % Reduce the space between items in the itemize and enumerate environments and the bibliography

\setlength{\parindent}{0pt} % Disables automatic paragraph indentation

%\setcounter{tocdepth}{5}
\usepackage{hyperref} % Enables hyperlinking (e.g., ToC)

\DeclarePairedDelimiter\ceil{\lceil}{\rceil}
\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}

\include{file/filecontents}

\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}

\lstset{frame=tb,
  language=C,
  aboveskip=3mm,
  belowskip=3mm,
  showstringspaces=false,
  columns=flexible,
  basicstyle=\footnotesize,
  numbers=none,
  numberstyle=\tiny\color{gray},
  keywordstyle=\color{blue},
  commentstyle=\color{dkgreen},
  stringstyle=\color{mauve},
  breaklines=true,
  breakatwhitespace=true,
  tabsize=3,
  numbers=left,
  numbersep=5pt,
  escapeinside={@}{@},
  numberstyle=\tiny %\color{mygray}
}



\newcommand{\prodscal}{\hspace{0.2cm}\text{\large{\textbf{\textperiodcentered}}\hspace{0.2cm} }}
\begin{document}
\setcounter{page}{3}
\pagenumbering{arabic}
\begin{center}
\  \\  % NON RIMUOVERE QUESTO INIZIO RIGA VUOTO!




\includegraphics{images/unipd-logo.png}\\[0.7cm]
{\LARGE Università degli Studi di Padova}\\[0.4cm]
%{\Large FacoltÃ  di Scienze MM.FF.NN.}\\[0.5cm]
{\Large Dipartimento di Matematica}\\[0.4cm]
{\Large Corso di Laurea Magistrale in Informatica}\\[0.4cm]

\vspace{13 mm}
\textsc{\Large Multiprocessor Resource Sharing Protocol}\\[0.8cm]
\textsc{\large Implementazione e valutazione}\\[0.3cm]

\vspace{18 mm}

\begin{normalsize}
\noindent Candidato: \hfill Relatore:\\
\noindent Sebastiano Catellani \hfill Prof. Tullio Vardanega\\\vspace{0.5cm}
\vspace{19 mm}
\textsc{\small Anno Accademico 2013 - 2014}
\end{normalsize}
\end{center}
\pagebreak
% \addtolength{\oddsidemargin}{+1,3cm} %inversione destra/sinistra tradizionale
% \addtolength{\evensidemargin}{-1,3cm} %inversione destra/sinistra tradizionale

\cleardoublepage
% Pagina bianca

% ABSTRACT
%\pagenumbering{roman}
\lhead{Abstract}
\include{abstract}
\lhead{}

\cleardoublepage

% ABSTRACT
%\pagenumbering{roman}
\lhead{Ringraziamenti}
\include{ringraziamenti}
\lhead{}

\cleardoublepage

\cfoot{\thepage}  % INSERIMENTO NUMERO PAGINE in FOOTER
\lhead{}
% Seconda pagina bianca post-abstract
\newpage
\thispagestyle{empty}
\mbox{}

%\newpage
%\thispagestyle{empty}

%\newpage
%\thispagestyle{empty}
%\mbox{}

%\newpage

% Pagina degli indici
\vspace{0.3cm}
% INDICE

\setlength{\oddsidemargin}{0.2in}
\setlength{\evensidemargin}{-0.1in}
\renewcommand\cftchapafterpnum{\vskip10pt}
% \setlength\cftparskip{12pt}
% \setlength\cftbeforesecskip{2pt}
% \setlength{\cftsubsecnumwidth}{8em}% Set length of number width in ToC for \subsection
\tableofcontents

\newpage
% \renewcommand*{\addvspace}[1]{}
% Indice immagini
 \listoffigures

% indice tabelle
 \listoftables

\include{1_introduzione}

\include{2_implementazione}

\include{3_esperimenti}

\include{4_conclusioni}

\appendix
\include{appendixA}

%------------------------------------------------


%------------------------------------------------


%----------------------------------------------------------------------------------------
%	BIBLIOGRAFIA
%----------------------------------------------------------------------------------------
\chaptermark{Bibliography}
%\renewcommand{\sectionmark}[1]{\markright{#1}}
\sectionmark{Bibliography}
\addcontentsline{toc}{chapter}{Bibliography}        %Force addition of Bibliography to TOC
\bibliographystyle{plain}                           %Use alpha codes for references
\bibliography{reference}  

%----------------------------------------------------------------------------------------

\end{document}